package com.tsd.common.service;

import com.tsd.common.entity.CommonParameterValue;
import com.tsd.common.entity.CommonParameterValueExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonParameterValue服务实现层接口
 *
 * @author zsy
 * @date 2019/12/06 10:58:19
 */
public interface CommonParameterValueService {

    /**
     * 描述：根据id获取CommonParameterValue
     *
     * @param id
     */
    CommonParameterValue getCommonParameterValueById(Long id) throws Exception;

    /**
     * 描述：根据sid获取CommonParameterValue
     *
     * @param sid
     */
    CommonParameterValue queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除CommonParameterValue
     *
     * @param id
     */
    void deleteCommonParameterValue(Long id, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新CommonParameterValue
     *
     * @param record
     * @param opUser
     */
    void saveCommonParameterValue(CommonParameterValueExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询CommonParameterValue
     *
     * @param params
     * @param page
     */
    List<CommonParameterValue> findCommonParameterValues(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询CommonParameterValue
     *
     * @param params
     */
    List<CommonParameterValue> findCommonParameterValues(Map<String, Object> params) throws Exception;

    /**
     * 根据sid查询通用参数
     *
     * @param sid
     * @return
     * @throws Exception
     */
    CommonParameterValue getCommonParameterValueBySid(String sid) throws Exception;


    /**
     * 描述：逻辑删除
     *
     * @param list
     * @param opUser
     */
    void deleteCommonParameterValues(List<String> list, SysUser opUser) throws Exception;

    List<CommonParameterValue> queryByKey(Map<String, Object> params) throws Exception;
}
